﻿@model IEnumerable<DBTramite.BussinesEntities.T_Documento>

@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2></h2>


<p>

    @Html.ActionLink("Registrar Nuevo Exediente", "Create")
    
    
</p>
@using (Html.BeginForm())
{
    <fieldset>
        <legend>Buscar Expediente</legend>
        <b>Numero Expediente:</b>
        @Html.TextBox("Criterio")
        <input type="submit" name="btnBuscar"  value ="Buscar"/>
    </fieldset>   
 
}



<div class="CSSTableGenerator"> 

    <div class="datagrid">
        @{ 
    var row = 0;
    var style = ""; 
  }

<table>
    <thead>
    <tr>
        <th>
             <b> Num. Expediente</b> 
           
            @*@Html.DisplayNameFor(model => model.nroexpediente)*@
        </th>
        <th>
            @*@Html.DisplayNameFor(model => model.expgenerador)*@
            Exp.Inicial
        </th>
        <th>
            @*@Html.DisplayNameFor(model => model.nrodocumento)*@
            Doc.Generado
        </th>
        <th>
            Fecha de Ingreso
           @* @Html.DisplayNameFor(model => model.fechaingreso)*@
        </th>
        <th>
            @*@Html.DisplayNameFor(model => model.asunto)*@
            Asunto
        </th>
        
        <th></th>
    </tr>
    </thead>

@foreach (var item in Model) {
    
style = row % 2 == 0 ? "alt" : "";
    
    <tr class="@style">       
        <td>
            @Html.DisplayFor(modelItem => item.nroexpediente)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.expgenerador)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.nrodocumento)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.fechaingreso) 
           @* @(Html.Kendo().Calendar().Name("fechaingreso").ToString())*@
         
           
        
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.asunto)
        </td>
        
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.nroexpediente }) |
            @Html.ActionLink("Details", "Details", new { /* id=item.PrimaryKey */ }) |
            @Html.ActionLink("Delete", "Delete", new { /* id=item.PrimaryKey */ })
        </td>
    </tr>
    row++;
}    

</table>
    </div>
    </div>




